import plugin from '../../lib/plugins/plugin.js';

export class diaotu extends plugin {
  constructor () {
    super({
      name: '随机爱莉',
      dsc: '随机爱莉',
      event: 'message',
      priority: 6,
      rule: [
        {
          reg: '^(#|/)?(爱莉|随机爱莉)$',
          fnc: 'elysia'
        },
      ]
    })
  }

  async elysia (e) {
    await this.reply('http://xn--itt616buum19r.top:50873/elysia');
    return true; // 返回 true 阻挡消息不再往下
  }

  async reply (imageLink) {
    return await this.e.reply(segment.image(imageLink), false);
  }
}
